<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <base href="{$site_url}/" />
        <!-- Use IE8 mode -->
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8 charset={$charset}" />
        <meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
        {$page_seo}
        <link href="{res file=css/header.css}" rel="stylesheet" type="text/css" />
        <link href="{res file=css/user.css}" rel="stylesheet" type="text/css" />
        <link href="{res file=css/footer.css}" rel="stylesheet" type="text/css" />
        <link href="{res file=css/epay.css}" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
            //<!CDATA[
            var SITE_URL = "{$site_url}";
            var REAL_SITE_URL = "{$real_site_url}";
            var PRICE_FORMAT = '{$price_format}';
            //]]>
        </script>
        <script type="text/javascript" src="{lib file=jslang.js}"></script>
        <script type="text/javascript" src="{lib file=jquery.js}" charset="utf-8"></script>
        <script type="text/javascript" src="{lib file=ecmall.js}" charset="utf-8"></script>
        <script type="text/javascript" src="{lib file=cart.js}" charset="utf-8"></script>
        <script type="text/javascript" src="{lib file=jquery.plugins/jquery.lazyload.js}" charset="utf-8"></script>
        <script type="text/javascript" src="{res file=js/main.js}" charset="utf-8"></script> 
        <script type="text/javascript" src="{lib file=member.js}" charset="utf-8"></script>
        <!--[if lte IE 6]>
        <script type="text/javascript" language="Javascript" src="{res file=js/hoverForIE6.js}"></script>
        <![endif]-->
        <script type="text/javascript">
            $(function() {
                $('#left h1 span,h2.title a.fold').click(function() {
                    if ($(this).hasClass('span_close')) {
                        $(this).removeClass('span_close');
                        $(this).addClass('span_open');
                        this.title = 'open';
                        closeSubmenu($(this).parent());
                    }
                    else {
                        $(this).removeClass('span_open');
                        $(this).addClass('span_close');
                        this.title = 'close';
                        openSubmenu($(this).parent());
                    }
                });
                var span = $("#child_nav");
                span.hover(function() {
                    $("#float_layer:not(:animated)").show();
                }, function() {
                    $("#float_layer").hide();
                });
                $('.tsearch-tabs li').click(function() {
                    $(this).parent().find('li').each(function() {
                        $(this).attr('class', '');
                    });
                    $(this).attr('class', 'tsearch-tabs-active');
                    $('.tsearch-panel input[name="act"]').val($(this).attr('ectype'));
                });
                $('.tsearch-panel #keyword').focus(function() {
                    $('.tsearch-panel label').hide();
                }).blur(function() {
                    if ($(this).val() == '') {
                        $('.tsearch-panel label').show();
                    }
                });
            });
            function closeSubmenu(h1) {
                h1.next('ul').css('display', 'none');
            }
            function openSubmenu(h1) {
                h1.next('ul').css('display', '');
            }
        </script>
        {$_head_tags}
    </head>
    <body>
        <div id="site-nav" class="w-full">
   <div class="shoptop w clearfix">

      <ul class="quick-menu">
        {if !$index}<li class="home"><a href="{$site_url}">{$lang.back_home}</a></li>{/if}
        <li class="item">
           <div class="menu iwantbuy">
              <a class="menu-hd" href="{url app=category}">{$lang.i_want_buy}<b class="front"></b><b class="behind"></b></a>
              <div class="menu-bd">
                 <div class="menu-bd-panel">
                    <div>
                       <p><a href="{url app=category}">{$lang.gcategory}</a></p>                    
                    </div>
                 </div>
              </div>
           </div>
         </li>
         <li class="item">
            <div class="menu mytb">
               <a class="menu-hd" href="{url app=buyer_admin}">{$lang.im_buyer}<b class="front"></b><b class="behind"></b></a>
               <div class="menu-bd">
                  <div class="menu-bd-panel">
                     <div>
                        <p><a href="{url app=buyer_order}">{$lang.have_goods}</a></p>
                        <p><a href="{url app=friend}">{$lang.my_friends}</a></p>
                        <p><a href="{url app=my_question}">{$lang.my_advice}</a></p>
                     </div>
                  </div>
               </div>
            </div>
         </li>
          <!--lichen 2019/5/9 start store-->
         <!--<li class="item">-->
            <!--<div class="menu seller-center">-->
               <!--<a class="menu-hd" href="{url app=seller_admin}">{$lang.Seller_Center}<b class="front"></b><b class="behind"></b></a>-->
               <!--<div class="menu-bd">-->
                  <!--<div class="menu-bd-panel">-->
                     <!--<div>-->
                        <!--<p><a href="{url app=seller_order}">{$lang.sold_goods}</a></p>-->
                        <!--<p><a href="{url app=my_goods}">{$lang.selling_goods}</a></p>-->
                     <!--</div>-->
                  <!--</div>-->
               <!--</div>-->
            <!--</div>-->
         <!--</li>-->
          <!--lichen 2019/5/9 end-->
         <li class="service">
            <a href="{url app=article&code=help}">{$lang.help_center}</a>
         </li>
         <li class="item">
            <div class="menu favorite">
               <a class="menu-hd" href="{url app=my_favorite}">{$lang.favorite}<b class="front"></b><b class="behind"></b></a>
               <div class="menu-bd">
                  <div class="menu-bd-panel">
                     <div>
                       <p><a href="{url app=my_favorite}">{$lang.favorite_goods}</a></p>
                         <!--lichen 2019/5/9 start store-->
                       <!--<p><a href="{url app=my_favorite&type=store}">{$lang.favorite_store}</a></p>-->
                         <!--lichen 2019/5/9 end-->
                    </div>
                 </div>
               </div>
           </div>
         </li>
         <li class="item" style="background:none">
            <div class="menu sites">
               <a class="menu-hd" href="javascript:;">{$lang.navigation}<b class="front"></b><b class="behind"></b></a>
               <div class="menu-bd padding10">
                  <!--{foreach from=$navs.header item=nav}-->
                  <a href="{$nav.link}"{if $nav.open_new} target="_blank"{/if}>{$nav.title|escape}</a>
                  <!--{/foreach}-->
               </div>
            </div>
        </li>
     </ul>
       
      <div class="login_info">
         {$lang.hello}
         <!--{if !$visitor.user_id}-->
         <a href="{url app=member&act=login&ret_url=$ret_url}">{$lang.login}</a>
         <a href="{url app=member&act=register&ret_url=$ret_url}" style="color:#f10215">{$lang.free_charge}{$lang.register}</a>
         <!--{else}-->
         <a href="{url app=member}">{$visitor.user_name|escape}</a>
         <a href="{url app=message&act=newpm}">{$lang.pm}<!--{if $new_message}-->(<span>{$new_message}</span>)<!--{/if}--></a>
         <a href="{url app=member&act=logout}">{$lang.logout}</a>
         <!--{/if}-->
      </div>
   </div>
</div>
        <div id="header" class="w-full">
    <div class="shop-t w clearfix">
        <div class="logo">
            <a href="{$site_url}" title="{$site_title}"><img alt="{$site_title}" src="{$site_logo}" /></a>
        </div>
        <div class="top-search">
            <div class="top-search-box clearfix">
                <ul class="top-search-tab clearfix">
                    <li data-id="index" class="current"><span>{$lang.goods}</span></li>
                    <li data-id="store"><span>{$lang.store}</span></li>
                </ul>
                <div class="form-fields">
                    <form method="GET" action="{url app=search}">
                        <input type="hidden" name="app" value="search" />
                        <input type="hidden" name="act" value="{if $smarty.get.act eq 'store'}store{else}index{/if}" />
                        <input type="text"   name="keyword" value="{$smarty.get.keyword|escape}" class="keyword {if !$smarty.get.keyword}kw_bj {if $smarty.get.act eq 'store'}store{else}index{/if}_bj {/if}" />
                        <input type="submit" value="&#xf00d9;" class="iconfont submit" hidefocus="true" />
                    </form>
                </div>
            </div>
            <div class="top-search-keywords">
                <!--{foreach from=$hot_keywords item=keyword name=fe_keyword}-->
                <a {if $smarty.foreach.fe_keyword.first}style="color:#f10215;"{/if} href="{url app=search&keyword=$keyword|escape:url}">{$keyword}</a>
                <!--{/foreach}-->
            </div>
        </div>
        <!--lichen 2019/4/29 start-->
        <!--<div class="header_cart">-->
            <!--<div class="title clearfix">-->
                <!--<span class="iconfont">&#xf00e6;</span><a href="{url app=cart}">{$lang.my_cart}</a>-->
            <!--</div>-->
            <!--<div class="shoping"><span class="count-cart J_C_T_GoodsKinds">{$cart_goods_kinds}</span></div>-->
            <!--<div class="cart-list">-->
                <!--&lt;!&ndash;{if $carts_top.cart_items}&ndash;&gt;-->
                <!--<div class="goods-list">-->
                    <!--<h4>{$lang.newst_goods}</h4>-->
                    <!--&lt;!&ndash;{foreach from=$carts_top.cart_items item=cart name=fe_cart}&ndash;&gt;-->
                    <!--<div {if $smarty.foreach.fe_cart.last}style="border:0px;"{/if} class="clearfix list" id="cart_goods{$cart.rec_id}">-->
                        <!--<div class="goods-img">-->
                            <!--<a href="{url app=goods&id=$cart.goods_id}" target="_top"><img alt="{$cart.goods_name}" src="{$cart.goods_image}" width="40" height="40"/></a>-->
                        <!--</div>-->
                        <!--<div class="goods-title">-->
                            <!--<a title="{$cart.goods_name}" href="{url app=goods&id=$cart.goods_id}" target="_top">{$cart.goods_name}</a>-->
                        <!--</div>-->
                        <!--<div class="goods-admin">-->
                            <!--<div class="mini-cart-count"><strong class="mini-cart-price J_C_T_Price">{$cart.price|price}×{$cart.quantity}</strong></div>-->
                            <!--<div class="mini-cart-del"><a href="javascript:;" onclick="drop_cart_item({$cart.store_id}, {$cart.rec_id});">{$lang.drop}</a></div>-->
                        <!--</div>-->
                    <!--</div>-->
                    <!--&lt;!&ndash;{/foreach}&ndash;&gt;-->
                <!--</div>-->
                <!--<div class="total">-->
                    <!--<span>{$lang.gong}<strong class="J_C_T_GoodsKinds"> {$cart_goods_kinds} </strong>{$lang.items}</span><span>{$lang.gongji} <strong class="J_C_T_Amount">{$carts_top.total|price}</strong></span>-->
                    <!--<a href="{url app=cart}">{$lang.go_cart}</a>-->
                <!--</div>-->
                <!--&lt;!&ndash;{else}&ndash;&gt;-->
                <!--<div class="nogoods clearfix">-->
                    <!--<b></b>{$lang.cart_info}-->
                <!--</div>-->
                <!--&lt;!&ndash;{/if}&ndash;&gt;-->
            <!--</div>-->
        <!--</div>-->
        <!--lichen 2019/4/29 end-->
    </div>
    <div class="w-full mall-nav" >
        <div class="w clearfix">
            <ul class="float-left navitems">
                <!--{foreach from=$navs.middle item=nav}-->
                <li class="each float-left inline-block"><a class="{if !$index and $nav.link eq $current_url}current{/if}" href="{$nav.link}"{if $nav.open_new} target="_blank"{/if}>{$nav.title|escape}{if $nav.hot==1}<span class="absolute block"></span>{/if}</a></li>
                <!--{/foreach}-->
            </ul>
        </div>
    </div>
</div>
            
            <div class="w shopnav">
                <ul class="clearfix">
                    <li class="first {if $member_role eq 'buyer_admin' || !$member_role}current{/if}"><a href="{url app=buyer_admin}"><strong>{$lang.im_buyer}</strong></a></li>
                    <!--lichen 2019/5/9 start-->
                    <!--<li class="last {if $member_role eq 'seller_admin'}current{/if}"><a href="{url app=seller_admin}"><strong>{$lang.im_seller}</strong></a></li>-->
                    <!--lichen 2019/5/9 end-->
                </ul>
            </div>
